package com.xur.springboot.controller;

import com.xur.springboot.entity.details;
import com.xur.springboot.service.detailsService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class detailsController {

    @Resource
    private detailsService detailsService;

    @GetMapping("/querydetailsByInternship_id")
    public List<details> queryBossInfoById(@RequestParam int internship_id) {

        System.out.println("internship_id查询的internship_id号："+internship_id);
        return detailsService.querydetailsByInternship_id(internship_id);

    }
}
